package com.jame.concurrency.lock;

import java.util.concurrent.locks.LockSupport;

/**
 * @author : Jame
 * @date : 2021-07-29 15:40
 **/
public class Park {
  static   Thread thread=Thread.currentThread();
    public static void main(String[] args) {



        new Thread(()->{
            try {
                Thread.sleep(3000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            thread.interrupt();
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }).start();


        LockSupport.park();

        System.out.println("====");



    }
}
